import request from '@/utils/axios';

// 定义接口或类型，以确保传入的数据结构是正确的
interface AdminCredentials {
  username: string;
  password: string;
}

export function adminLogin(credentials: AdminCredentials) {
  return request({
    url: '/login', 
    method: 'post',
    data: credentials,
  });
}